package com.homegoods.orderinfodetail.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.homegoods.orderinfodetail.item.ShopNameItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import java.util.ArrayList;

public class OrderInFoShopBean extends BaseModel<ShopNameItem> {

    /**
     * 	"factory": [{
     *      * 				"factory_name": "南极人",
     *      * 				"factory_sid": "factory_7fd80ea9b2674cf49bad5c3bf64a25fb",
     *      * 				"icon": "/upath/2018/12/4/18168553892456ufi.png",
     *      * 				"factoryprice": 199,
     *      * 				"factoryshippingfee": 0,
     *      * 				"factoryreturncash": 1,
     *      *
     *      *            }],
     */
    /**
     * 店铺名称
     */
    @JSONField(alternateNames = {"merchantName","factory_name"})
    private String title;

    /**
     * 店铺ID
     */
    @JSONField(alternateNames = {"merID","factory_sid"})
    private String sid;
    @JSONField(alternateNames = {"goods","ommodity"})
    private ArrayList<ComdiyBean> comdiylist;
    /**
     * 组是否被选中
     */
    private boolean isGroupSelected;
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public ArrayList<ComdiyBean> getComdiylist() {
        return comdiylist;
    }

    public void setComdiylist(ArrayList<ComdiyBean> comdiylist) {
        this.comdiylist = comdiylist;
    }

    public boolean isGroupSelected() {
        return isGroupSelected;
    }

    public void setGroupSelected(boolean groupSelected) {
        isGroupSelected = groupSelected;
    }

    @Override
    public ShopNameItem createItem(MultiTypeAdapter adapter) {
        if (item == null) {
            item = new ShopNameItem(this);
        }
        return item;
    }
}
